/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.ulima.programacion.modulo2;

import javax.swing.JOptionPane;

/**
 *
 * @author profw51
 */
public class IF01 {

    public static void main(String[] args) {
        float nota = 19.5f;
        //qué sucede si : float nota=19.5 -> no compila, perdida de precision

        if (nota > 18) {
            //qué sucede si : nota>18 -> si compila, 18 se promueve a float
            JOptionPane.showMessageDialog(null, "Chicoteca");
        } else {
            JOptionPane.showMessageDialog(null, " Estudiar ");
        }
    }
}
